#!/usr/bin/python2.4
#
# Copyright 2011 Google Inc. All Rights Reserved.

"""This module sets up the entire Classifies.it app, and maps URIs."""

__author__ = 'alainv@google.com'

import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app


class MainPage(webapp.RequestHandler):
  TEMPLATE_BASE_PATH = 'templates/'
  
  def get(self):
    template_values = {}
    path = os.path.join(MainPage.TEMPLATE_BASE_PATH, 'index.html')
    self.response.out.write(template.render(path, template_values))


application = webapp.WSGIApplication(
    [('/', MainPage)],
    debug=True)


def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()
